<?php

namespace App\Http\Controllers;

use App\Module\MarkModule;
use Illuminate\Http\Request;

class MarkController extends BaseController
{
    public function init(Request $request){
        $this->run(MarkModule::class,'init',$request);
        return $this->response();
    }

    public function add(Request $request){
        $this->run(MarkModule::class, 'add', $request);
        return $this->response();
    }

    public function list(Request $request){
        $this->run(MarkModule::class, 'list', $request, true);
        return $this->response();
    }

    public function listmain(Request $request){
        $this->run(MarkModule::class, 'list', $request, false);
        return $this->response();
    }

    public function del(Request $request){
        $this->run(MarkModule::class, 'del', $request);
        return $this->response();
    }

    public function adminDel(Request $request){
        $this->run(MarkModule::class, 'adminDel', $request);
        return $this->response();
    }

}
